

	

var sundata=null;

$.ajax({

		type: 'post', //

		url:'http://10.30.1.215/ix/recommend',
		
		data: {},
		
		dataType: 'json',
		
		async: false,

		success: function(dataJson) {
			 sundata = dataJson || [];
			console.log(dataJson);
			
			
			//----
			var vm1= new Vue({
	el:"#root",
	data:{
	msg:{name:'1111'},
	content:"<h1>lalalaalal</h1>",
					firstname:'',
				lastname:'',
				count:0,
				list:[{name:'sun',pwd:'1111'},
				{name:'2222',pwd:'2222'},
				{name:'3333',pwd:'3333'}],
				sun:'chen'
				}
				
			});
			
			//---
			
			
			
		},

		error: function() {

			console.log('请求数据失败');

		}

	});



var vm1= new Vue({
	el:"#root",
	data:{
	msg:{name:'1111'},
	content:"<h1>lalalaalal</h1>",
					firstname:'',
				lastname:'',
				count:0,
				list:[{name:'sun',pwd:'1111'},
				{name:'2222',pwd:'2222'},
				{name:'3333',pwd:'3333'}],
				sun:'chen'
				}
				
			});
		var sun_yaping="ai  sunjiandou"
			
			var vm= new Vue({
//				el:"#machines",
				//模板
//				template:'<h1>hello {{msg}}</h1>',
				data:{
					msg:"lalalalal",
					content:"<h1>lalalaalal</h1>",
					firstname:'',
				lastname:'',
				count:0,
				list:[{name:'1111',pwd:'1111'},
				{name:'2222',pwd:'2222'},
				{name:'3333',pwd:'3333'}],
				sun:sun_yaping,
				sunmachine:[{name:'http://www.ceshifan.com/task/img/upload/image/201711/20171106010121.png',pwd:'型号：iCAP Qc',title:'50'}]
				},
				methods:{
					handleClick:function(){
						this.content ="sunjiandou"
					},
					handleClic:function(){
						this.sun ="xxxxx"
					}
				},
				computed:{
					fullname:function(){
						return this.firstname + '' +this.lastname
					}
				},
				watch:{
					fullname:function(){
						this.count ++
					}
				}
				
			});

